<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>X Window System Interaction</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GDK 2 Reference Manual">
<link rel="up" href="reference.html" title="API Reference">
<link rel="prev" href="gdk-Cairo-Interaction.html" title="Cairo Interaction">
<link rel="next" href="gdk-Application-launching.html" title="Application launching">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gdk-Cairo-Interaction.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="reference.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GDK 2 Reference Manual</th>
<td><a accesskey="n" href="gdk-Application-launching.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gdk-X-Window-System-Interaction.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gdk-X-Window-System-Interaction.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gdk-X-Window-System-Interaction"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gdk-X-Window-System-Interaction.top_of_page"></a>X Window System Interaction</span></h2>
<p>X Window System Interaction — X backend-specific functions</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gdk-X-Window-System-Interaction.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gdk/gdkx.h&gt;

#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-ROOT-WINDOW:CAPS" title="GDK_ROOT_WINDOW">GDK_ROOT_WINDOW</a>
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-ROOT-PARENT:CAPS" title="GDK_ROOT_PARENT">GDK_ROOT_PARENT</a>
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-DISPLAY:CAPS" title="GDK_DISPLAY">GDK_DISPLAY</a>
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-WINDOW-XDISPLAY:CAPS" title="GDK_WINDOW_XDISPLAY()">GDK_WINDOW_XDISPLAY</a>                 (win)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-WINDOW-XID:CAPS" title="GDK_WINDOW_XID()">GDK_WINDOW_XID</a>                      (win)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-PIXMAP-XDISPLAY:CAPS" title="GDK_PIXMAP_XDISPLAY()">GDK_PIXMAP_XDISPLAY</a>                 (pix)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-PIXMAP-XID:CAPS" title="GDK_PIXMAP_XID()">GDK_PIXMAP_XID</a>                      (pix)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-DISPLAY-XDISPLAY:CAPS" title="GDK_DISPLAY_XDISPLAY()">GDK_DISPLAY_XDISPLAY</a>                (display)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-DRAWABLE-XDISPLAY:CAPS" title="GDK_DRAWABLE_XDISPLAY()">GDK_DRAWABLE_XDISPLAY</a>               (win)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-DRAWABLE-XID:CAPS" title="GDK_DRAWABLE_XID()">GDK_DRAWABLE_XID</a>                    (win)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-IMAGE-XDISPLAY:CAPS" title="GDK_IMAGE_XDISPLAY()">GDK_IMAGE_XDISPLAY</a>                  (image)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-IMAGE-XIMAGE:CAPS" title="GDK_IMAGE_XIMAGE()">GDK_IMAGE_XIMAGE</a>                    (image)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-GC-XDISPLAY:CAPS" title="GDK_GC_XDISPLAY()">GDK_GC_XDISPLAY</a>                     (gc)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-COLORMAP-XDISPLAY:CAPS" title="GDK_COLORMAP_XDISPLAY()">GDK_COLORMAP_XDISPLAY</a>               (cmap)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-COLORMAP-XCOLORMAP:CAPS" title="GDK_COLORMAP_XCOLORMAP()">GDK_COLORMAP_XCOLORMAP</a>              (cmap)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-SCREEN-XDISPLAY:CAPS" title="GDK_SCREEN_XDISPLAY()">GDK_SCREEN_XDISPLAY</a>                 (screen)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-SCREEN-XNUMBER:CAPS" title="GDK_SCREEN_XNUMBER()">GDK_SCREEN_XNUMBER</a>                  (screen)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-SCREEN-XSCREEN:CAPS" title="GDK_SCREEN_XSCREEN()">GDK_SCREEN_XSCREEN</a>                  (screen)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-VISUAL-XVISUAL:CAPS" title="GDK_VISUAL_XVISUAL()">GDK_VISUAL_XVISUAL</a>                  (vis)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-FONT-XDISPLAY:CAPS" title="GDK_FONT_XDISPLAY()">GDK_FONT_XDISPLAY</a>                   (font)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-FONT-XFONT:CAPS" title="GDK_FONT_XFONT()">GDK_FONT_XFONT</a>                      (font)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-CURSOR-XCURSOR:CAPS" title="GDK_CURSOR_XCURSOR()">GDK_CURSOR_XCURSOR</a>                  (cursor)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-CURSOR-XDISPLAY:CAPS" title="GDK_CURSOR_XDISPLAY()">GDK_CURSOR_XDISPLAY</a>                 (cursor)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-GC-XGC:CAPS" title="GDK_GC_XGC()">GDK_GC_XGC</a>                          (gc)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-GC-GET-XGC:CAPS" title="GDK_GC_GET_XGC()">GDK_GC_GET_XGC</a>                      (gc)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-WINDOW-XWINDOW:CAPS" title="GDK_WINDOW_XWINDOW">GDK_WINDOW_XWINDOW</a>
<a class="link" href="gdk-Visuals.html#GdkVisual" title="GdkVisual"><span class="returnvalue">GdkVisual</span></a> *         <a class="link" href="gdk-X-Window-System-Interaction.html#gdkx-visual-get" title="gdkx_visual_get ()">gdkx_visual_get</a>                     (<em class="parameter"><code><span class="type">VisualID</span> xvisualid</code></em>);
<a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="returnvalue">GdkColormap</span></a> *       <a class="link" href="gdk-X-Window-System-Interaction.html#gdkx-colormap-get" title="gdkx_colormap_get ()">gdkx_colormap_get</a>                   (<em class="parameter"><code><span class="type">Colormap</span> xcolormap</code></em>);
<a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="returnvalue">GdkPixmap</span></a> *         <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-pixmap-foreign-new" title="gdk_pixmap_foreign_new ()">gdk_pixmap_foreign_new</a>              (<em class="parameter"><code><a class="link" href="gdk-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);
<a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="returnvalue">GdkPixmap</span></a> *         <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-pixmap-foreign-new-for-display" title="gdk_pixmap_foreign_new_for_display ()">gdk_pixmap_foreign_new_for_display</a>  (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gdk-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);
<a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="returnvalue">GdkPixmap</span></a> *         <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-pixmap-foreign-new-for-screen" title="gdk_pixmap_foreign_new_for_screen ()">gdk_pixmap_foreign_new_for_screen</a>   (<em class="parameter"><code><a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gdk-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> depth</code></em>);
<a class="link" href="gdk-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-window-foreign-new" title="gdk_window_foreign_new ()">gdk_window_foreign_new</a>              (<em class="parameter"><code><a class="link" href="gdk-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);
<a class="link" href="gdk-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-window-foreign-new-for-display" title="gdk_window_foreign_new_for_display ()">gdk_window_foreign_new_for_display</a>  (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gdk-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>            <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-xid-table-lookup" title="gdk_xid_table_lookup ()">gdk_xid_table_lookup</a>                (<em class="parameter"><code><span class="type">XID</span> xid</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>            <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-xid-table-lookup-for-display" title="gdk_xid_table_lookup_for_display ()">gdk_xid_table_lookup_for_display</a>    (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><span class="type">XID</span> xid</code></em>);
<a class="link" href="gdk-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-window-lookup" title="gdk_window_lookup ()">gdk_window_lookup</a>                   (<em class="parameter"><code><a class="link" href="gdk-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);
<a class="link" href="gdk-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-window-lookup-for-display" title="gdk_window_lookup_for_display ()">gdk_window_lookup_for_display</a>       (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gdk-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);
<a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="returnvalue">GdkPixmap</span></a> *         <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-pixmap-lookup" title="gdk_pixmap_lookup ()">gdk_pixmap_lookup</a>                   (<em class="parameter"><code><a class="link" href="gdk-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);
<a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="returnvalue">GdkPixmap</span></a> *         <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-pixmap-lookup-for-display" title="gdk_pixmap_lookup_for_display ()">gdk_pixmap_lookup_for_display</a>       (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gdk-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-font-lookup" title="gdk_font_lookup()">gdk_font_lookup</a>                     (xid)
#define             <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-font-lookup-for-display" title="gdk_font_lookup_for_display()">gdk_font_lookup_for_display</a>         (display,
                                                         xid)
<a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="returnvalue">GdkDisplay</span></a> *        <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-lookup-xdisplay" title="gdk_x11_lookup_xdisplay ()">gdk_x11_lookup_xdisplay</a>             (<em class="parameter"><code><span class="type">Display</span> *xdisplay</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a>             <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-get-server-time" title="gdk_x11_get_server_time ()">gdk_x11_get_server_time</a>             (<em class="parameter"><code><a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-net-wm-supports" title="gdk_net_wm_supports ()">gdk_net_wm_supports</a>                 (<em class="parameter"><code><a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a> property</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-screen-supports-net-wm-hint" title="gdk_x11_screen_supports_net_wm_hint ()">gdk_x11_screen_supports_net_wm_hint</a> (<em class="parameter"><code><a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a> property</code></em>);
const <span class="returnvalue">char</span> *        <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-screen-get-window-manager-name" title="gdk_x11_screen_get_window_manager_name ()">gdk_x11_screen_get_window_manager_name</a>
                                                        (<em class="parameter"><code><a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> *screen</code></em>);
<span class="returnvalue">XID</span>                 <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-screen-get-monitor-output" title="gdk_x11_screen_get_monitor_output ()">gdk_x11_screen_get_monitor_output</a>   (<em class="parameter"><code><a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> monitor_num</code></em>);
<a class="link" href="gdk-Visuals.html#GdkVisual" title="GdkVisual"><span class="returnvalue">GdkVisual</span></a> *         <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-screen-lookup-visual" title="gdk_x11_screen_lookup_visual ()">gdk_x11_screen_lookup_visual</a>        (<em class="parameter"><code><a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><span class="type">VisualID</span> xvisualid</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-window-set-user-time" title="gdk_x11_window_set_user_time ()">gdk_x11_window_set_user_time</a>        (<em class="parameter"><code><a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> timestamp</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-window-move-to-current-desktop" title="gdk_x11_window_move_to_current_desktop ()">gdk_x11_window_move_to_current_desktop</a>
                                                        (<em class="parameter"><code><a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a>             <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-display-get-user-time" title="gdk_x11_display_get_user_time ()">gdk_x11_display_get_user_time</a>       (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>);
<a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="returnvalue">GdkColormap</span></a> *       <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-colormap-foreign-new" title="gdk_x11_colormap_foreign_new ()">gdk_x11_colormap_foreign_new</a>        (<em class="parameter"><code><a class="link" href="gdk-Visuals.html#GdkVisual" title="GdkVisual"><span class="type">GdkVisual</span></a> *visual</code></em>,
                                                         <em class="parameter"><code><span class="type">Colormap</span> xcolormap</code></em>);
<span class="returnvalue">Colormap</span>            <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-colormap-get-xcolormap" title="gdk_x11_colormap_get_xcolormap ()">gdk_x11_colormap_get_xcolormap</a>      (<em class="parameter"><code><a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a> *colormap</code></em>);
<span class="returnvalue">Display</span> *           <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-colormap-get-xdisplay" title="gdk_x11_colormap_get_xdisplay ()">gdk_x11_colormap_get_xdisplay</a>       (<em class="parameter"><code><a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a> *colormap</code></em>);
<span class="returnvalue">Cursor</span>              <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-cursor-get-xcursor" title="gdk_x11_cursor_get_xcursor ()">gdk_x11_cursor_get_xcursor</a>          (<em class="parameter"><code><a class="link" href="gdk-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a> *cursor</code></em>);
<span class="returnvalue">Display</span> *           <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-cursor-get-xdisplay" title="gdk_x11_cursor_get_xdisplay ()">gdk_x11_cursor_get_xdisplay</a>         (<em class="parameter"><code><a class="link" href="gdk-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a> *cursor</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-display-broadcast-startup-message" title="gdk_x11_display_broadcast_startup_message ()">gdk_x11_display_broadcast_startup_message</a>
                                                        (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *message_type</code></em>,
                                                         <em class="parameter"><code>...</code></em>);
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-display-get-startup-notification-id" title="gdk_x11_display_get_startup_notification_id ()">gdk_x11_display_get_startup_notification_id</a>
                                                        (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>);
<span class="returnvalue">Display</span> *           <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-display-get-xdisplay" title="gdk_x11_display_get_xdisplay ()">gdk_x11_display_get_xdisplay</a>        (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-display-grab" title="gdk_x11_display_grab ()">gdk_x11_display_grab</a>                (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-display-ungrab" title="gdk_x11_display_ungrab ()">gdk_x11_display_ungrab</a>              (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-display-set-cursor-theme" title="gdk_x11_display_set_cursor_theme ()">gdk_x11_display_set_cursor_theme</a>    (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *theme</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> size</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-register-standard-event-type" title="gdk_x11_register_standard_event_type ()">gdk_x11_register_standard_event_type</a>
                                                        (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> event_base</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n_events</code></em>);
<span class="returnvalue">Display</span> *           <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-drawable-get-xdisplay" title="gdk_x11_drawable_get_xdisplay ()">gdk_x11_drawable_get_xdisplay</a>       (<em class="parameter"><code><a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a> *drawable</code></em>);
<span class="returnvalue">XID</span>                 <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-drawable-get-xid" title="gdk_x11_drawable_get_xid ()">gdk_x11_drawable_get_xid</a>            (<em class="parameter"><code><a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a> *drawable</code></em>);
const <span class="returnvalue">char</span> *        <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-font-get-name" title="gdk_x11_font_get_name ()">gdk_x11_font_get_name</a>               (<em class="parameter"><code><a class="link" href="gdk-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a> *font</code></em>);
<span class="returnvalue">Display</span> *           <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-font-get-xdisplay" title="gdk_x11_font_get_xdisplay ()">gdk_x11_font_get_xdisplay</a>           (<em class="parameter"><code><a class="link" href="gdk-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a> *font</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>            <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-font-get-xfont" title="gdk_x11_font_get_xfont ()">gdk_x11_font_get_xfont</a>              (<em class="parameter"><code><a class="link" href="gdk-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a> *font</code></em>);
<span class="returnvalue">Display</span> *           <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-gc-get-xdisplay" title="gdk_x11_gc_get_xdisplay ()">gdk_x11_gc_get_xdisplay</a>             (<em class="parameter"><code><a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> *gc</code></em>);
<span class="returnvalue">GC</span>                  <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-gc-get-xgc" title="gdk_x11_gc_get_xgc ()">gdk_x11_gc_get_xgc</a>                  (<em class="parameter"><code><a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> *gc</code></em>);
<span class="returnvalue">Window</span>              <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-get-default-root-xwindow" title="gdk_x11_get_default_root_xwindow ()">gdk_x11_get_default_root_xwindow</a>    (<em class="parameter"><code><span class="type">void</span></code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-get-default-screen" title="gdk_x11_get_default_screen ()">gdk_x11_get_default_screen</a>          (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">Display</span> *           <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-get-default-xdisplay" title="gdk_x11_get_default_xdisplay ()">gdk_x11_get_default_xdisplay</a>        (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-grab-server" title="gdk_x11_grab_server ()">gdk_x11_grab_server</a>                 (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">Display</span> *           <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-image-get-xdisplay" title="gdk_x11_image_get_xdisplay ()">gdk_x11_image_get_xdisplay</a>          (<em class="parameter"><code><a class="link" href="gdk-Images.html#GdkImage" title="GdkImage"><span class="type">GdkImage</span></a> *image</code></em>);
<span class="returnvalue">XImage</span> *            <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-image-get-ximage" title="gdk_x11_image_get_ximage ()">gdk_x11_image_get_ximage</a>            (<em class="parameter"><code><a class="link" href="gdk-Images.html#GdkImage" title="GdkImage"><span class="type">GdkImage</span></a> *image</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-screen-get-screen-number" title="gdk_x11_screen_get_screen_number ()">gdk_x11_screen_get_screen_number</a>    (<em class="parameter"><code><a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> *screen</code></em>);
<span class="returnvalue">Screen</span> *            <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-screen-get-xscreen" title="gdk_x11_screen_get_xscreen ()">gdk_x11_screen_get_xscreen</a>          (<em class="parameter"><code><a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> *screen</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-ungrab-server" title="gdk_x11_ungrab_server ()">gdk_x11_ungrab_server</a>               (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">Visual</span> *            <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-visual-get-xvisual" title="gdk_x11_visual_get_xvisual ()">gdk_x11_visual_get_xvisual</a>          (<em class="parameter"><code><a class="link" href="gdk-Visuals.html#GdkVisual" title="GdkVisual"><span class="type">GdkVisual</span></a> *visual</code></em>);
<span class="returnvalue">Atom</span>                <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-atom-to-xatom" title="gdk_x11_atom_to_xatom ()">gdk_x11_atom_to_xatom</a>               (<em class="parameter"><code><a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a> atom</code></em>);
<span class="returnvalue">Atom</span>                <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-atom-to-xatom-for-display" title="gdk_x11_atom_to_xatom_for_display ()">gdk_x11_atom_to_xatom_for_display</a>   (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a> atom</code></em>);
<a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="returnvalue">GdkAtom</span></a>             <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-xatom-to-atom" title="gdk_x11_xatom_to_atom ()">gdk_x11_xatom_to_atom</a>               (<em class="parameter"><code><span class="type">Atom</span> xatom</code></em>);
<a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="returnvalue">GdkAtom</span></a>             <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-xatom-to-atom-for-display" title="gdk_x11_xatom_to_atom_for_display ()">gdk_x11_xatom_to_atom_for_display</a>   (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><span class="type">Atom</span> xatom</code></em>);
<span class="returnvalue">Atom</span>                <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-get-xatom-by-name" title="gdk_x11_get_xatom_by_name ()">gdk_x11_get_xatom_by_name</a>           (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *atom_name</code></em>);
<span class="returnvalue">Atom</span>                <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-get-xatom-by-name-for-display" title="gdk_x11_get_xatom_by_name_for_display ()">gdk_x11_get_xatom_by_name_for_display</a>
                                                        (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *atom_name</code></em>);
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-get-xatom-name" title="gdk_x11_get_xatom_name ()">gdk_x11_get_xatom_name</a>              (<em class="parameter"><code><span class="type">Atom</span> xatom</code></em>);
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-get-xatom-name-for-display" title="gdk_x11_get_xatom_name_for_display ()">gdk_x11_get_xatom_name_for_display</a>  (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><span class="type">Atom</span> xatom</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-set-sm-client-id" title="gdk_x11_set_sm_client_id ()">gdk_x11_set_sm_client_id</a>            (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *sm_client_id</code></em>);
<a class="link" href="gdk-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-window-foreign-new-for-display" title="gdk_x11_window_foreign_new_for_display ()">gdk_x11_window_foreign_new_for_display</a>
                                                        (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><span class="type">Window</span> window</code></em>);
<a class="link" href="gdk-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-window-lookup-for-display" title="gdk_x11_window_lookup_for_display ()">gdk_x11_window_lookup_for_display</a>   (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><span class="type">Window</span> window</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gdk-X-Window-System-Interaction.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1">
<a name="gdk-X-Window-System-Interaction.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GDK-ROOT-WINDOW:CAPS"></a><h3>GDK_ROOT_WINDOW</h3>
<pre class="programlisting">#define GDK_ROOT_WINDOW()             (gdk_x11_get_default_root_xwindow ())
</pre>
<p>
Obtains the Xlib window id of the root window of the current screen.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GDK-ROOT-PARENT:CAPS"></a><h3>GDK_ROOT_PARENT</h3>
<pre class="programlisting">#define GDK_ROOT_PARENT()             (gdk_get_default_root_window ())
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">GDK_ROOT_PARENT</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Obtains the Xlib window id of the root window of the default screen.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GDK-DISPLAY:CAPS"></a><h3>GDK_DISPLAY</h3>
<pre class="programlisting">#define GDK_DISPLAY()                 gdk_display
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">GDK_DISPLAY</code> has been deprecated since version 2.22 and should not be used in newly-written code. Use <a class="link" href="GdkDisplay.html#gdk-display-get-default" title="gdk_display_get_default ()"><code class="function">gdk_display_get_default()</code></a> to get the default <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> or <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-get-default-xdisplay" title="gdk_x11_get_default_xdisplay ()"><code class="function">gdk_x11_get_default_xdisplay()</code></a> to get the corresponding Xlib Display *</p>
</div>
<p>
The current display.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Display*</span>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-WINDOW-XDISPLAY:CAPS"></a><h3>GDK_WINDOW_XDISPLAY()</h3>
<pre class="programlisting">#define GDK_WINDOW_XDISPLAY(win)      (GDK_SCREEN_X11 (GDK_WINDOW_SCREEN (win))-&gt;xdisplay)
</pre>
<p>
Returns the display of a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>win</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Display*</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-WINDOW-XID:CAPS"></a><h3>GDK_WINDOW_XID()</h3>
<pre class="programlisting">#define GDK_WINDOW_XID(win)           (GDK_DRAWABLE_IMPL_X11(((GdkWindowObject *)win)-&gt;impl)-&gt;xid)
</pre>
<p>
Returns the X window belonging to a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>win</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the Xlib <span class="type">Window</span> of <em class="parameter"><code>win</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-PIXMAP-XDISPLAY:CAPS"></a><h3>GDK_PIXMAP_XDISPLAY()</h3>
<pre class="programlisting">#define GDK_PIXMAP_XDISPLAY(pix)      (GDK_SCREEN_X11 (GDK_PIXMAP_SCREEN (pix))-&gt;xdisplay)
</pre>
<p>
Returns the display of a <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pix</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Display*</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-PIXMAP-XID:CAPS"></a><h3>GDK_PIXMAP_XID()</h3>
<pre class="programlisting">#define GDK_PIXMAP_XID(pix)           (GDK_DRAWABLE_IMPL_X11(((GdkPixmapObject *)pix)-&gt;impl)-&gt;xid)
</pre>
<p>
Returns the X pixmap belonging to a <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pix</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the Xlib <span class="type">XPixmap</span> of <em class="parameter"><code>win</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-DISPLAY-XDISPLAY:CAPS"></a><h3>GDK_DISPLAY_XDISPLAY()</h3>
<pre class="programlisting">#define GDK_DISPLAY_XDISPLAY(display) (GDK_DISPLAY_X11(display)-&gt;xdisplay)
</pre>
<p>
Returns the display of a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-DRAWABLE-XDISPLAY:CAPS"></a><h3>GDK_DRAWABLE_XDISPLAY()</h3>
<pre class="programlisting">#define GDK_DRAWABLE_XDISPLAY(win)    (GDK_IS_WINDOW (win) ? GDK_WINDOW_XDISPLAY (win) : GDK_PIXMAP_XDISPLAY (win))
</pre>
<p>
Returns the display of a <a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>win</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Display*</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-DRAWABLE-XID:CAPS"></a><h3>GDK_DRAWABLE_XID()</h3>
<pre class="programlisting">#define GDK_DRAWABLE_XID(win)         (GDK_IS_WINDOW (win) ? GDK_WINDOW_XID (win) : GDK_PIXMAP_XID (win))
</pre>
<p>
Returns the X resource (window or pixmap) belonging to a <a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>win</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the ID of <em class="parameter"><code>win</code></em>'s X resource.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-IMAGE-XDISPLAY:CAPS"></a><h3>GDK_IMAGE_XDISPLAY()</h3>
<pre class="programlisting">#define GDK_IMAGE_XDISPLAY(image)     (gdk_x11_image_get_xdisplay (image))
</pre>
<p>
Returns the display of a <a class="link" href="gdk-Images.html#GdkImage" title="GdkImage"><span class="type">GdkImage</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Images.html#GdkImage" title="GdkImage"><span class="type">GdkImage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Display*</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-IMAGE-XIMAGE:CAPS"></a><h3>GDK_IMAGE_XIMAGE()</h3>
<pre class="programlisting">#define GDK_IMAGE_XIMAGE(image)       (gdk_x11_image_get_ximage (image))
</pre>
<p>
Returns the X image belonging to a <a class="link" href="gdk-Images.html#GdkImage" title="GdkImage"><span class="type">GdkImage</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Images.html#GdkImage" title="GdkImage"><span class="type">GdkImage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an <span class="type">XImage*</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-GC-XDISPLAY:CAPS"></a><h3>GDK_GC_XDISPLAY()</h3>
<pre class="programlisting">#define GDK_GC_XDISPLAY(gc)           (GDK_SCREEN_XDISPLAY(GDK_GC_X11(gc)-&gt;screen))
</pre>
<p>
Returns the display of a <a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>gc</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Display*</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-COLORMAP-XDISPLAY:CAPS"></a><h3>GDK_COLORMAP_XDISPLAY()</h3>
<pre class="programlisting">#define GDK_COLORMAP_XDISPLAY(cmap)   (gdk_x11_colormap_get_xdisplay (cmap))
</pre>
<p>
Returns the display of a <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>cmap</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Display*</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-COLORMAP-XCOLORMAP:CAPS"></a><h3>GDK_COLORMAP_XCOLORMAP()</h3>
<pre class="programlisting">#define GDK_COLORMAP_XCOLORMAP(cmap)  (gdk_x11_colormap_get_xcolormap (cmap))
</pre>
<p>
Returns the X colormap belonging to a <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>cmap</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Colormap</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-SCREEN-XDISPLAY:CAPS"></a><h3>GDK_SCREEN_XDISPLAY()</h3>
<pre class="programlisting">#define GDK_SCREEN_XDISPLAY(screen)   (GDK_SCREEN_X11 (screen)-&gt;xdisplay)
</pre>
<p>
Returns the display of a <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Display*</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-SCREEN-XNUMBER:CAPS"></a><h3>GDK_SCREEN_XNUMBER()</h3>
<pre class="programlisting">#define GDK_SCREEN_XNUMBER(screen)    (GDK_SCREEN_X11 (screen)-&gt;screen_num) 
</pre>
<p>
Returns the index of a <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the position of <em class="parameter"><code>screen</code></em> among the screens of
its display.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-SCREEN-XSCREEN:CAPS"></a><h3>GDK_SCREEN_XSCREEN()</h3>
<pre class="programlisting">#define GDK_SCREEN_XSCREEN(screen)    (GDK_SCREEN_X11 (screen)-&gt;xscreen)
</pre>
<p>
Returns the screen of a <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Screen*</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-VISUAL-XVISUAL:CAPS"></a><h3>GDK_VISUAL_XVISUAL()</h3>
<pre class="programlisting">#define GDK_VISUAL_XVISUAL(vis)       (((GdkVisualPrivate *) vis)-&gt;xvisual)
</pre>
<p>
Returns the X visual belonging to a <a class="link" href="gdk-Visuals.html#GdkVisual" title="GdkVisual"><span class="type">GdkVisual</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>vis</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Visuals.html#GdkVisual" title="GdkVisual"><span class="type">GdkVisual</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Visual*</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-FONT-XDISPLAY:CAPS"></a><h3>GDK_FONT_XDISPLAY()</h3>
<pre class="programlisting">#define GDK_FONT_XDISPLAY(font)       (gdk_x11_font_get_xdisplay (font))
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">GDK_FONT_XDISPLAY</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Returns the display of a <a class="link" href="gdk-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Display*</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-FONT-XFONT:CAPS"></a><h3>GDK_FONT_XFONT()</h3>
<pre class="programlisting">#define GDK_FONT_XFONT(font)          (gdk_x11_font_get_xfont (font))
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">GDK_FONT_XFONT</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Returns the X font belonging to a <a class="link" href="gdk-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">XFontStruct*</span> or an <span class="type">XFontSet</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-CURSOR-XCURSOR:CAPS"></a><h3>GDK_CURSOR_XCURSOR()</h3>
<pre class="programlisting">#define GDK_CURSOR_XCURSOR(cursor)    (gdk_x11_cursor_get_xcursor (cursor))
</pre>
<p>
Returns the X cursor belonging to a <a class="link" href="gdk-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>cursor</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Cursor</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-CURSOR-XDISPLAY:CAPS"></a><h3>GDK_CURSOR_XDISPLAY()</h3>
<pre class="programlisting">#define GDK_CURSOR_XDISPLAY(cursor)   (gdk_x11_cursor_get_xdisplay (cursor))
</pre>
<p>
Returns the display of a <a class="link" href="gdk-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>cursor</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Display*</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-GC-XGC:CAPS"></a><h3>GDK_GC_XGC()</h3>
<pre class="programlisting">#define GDK_GC_XGC(gc)		      (GDK_GC_X11(gc)-&gt;xgc)
</pre>
<p>
Returns the X GC of a <a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>gc</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">GC</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-GC-GET-XGC:CAPS"></a><h3>GDK_GC_GET_XGC()</h3>
<pre class="programlisting">#define GDK_GC_GET_XGC(gc)	      (GDK_GC_X11(gc)-&gt;dirty_mask ? _gdk_x11_gc_flush (gc) : ((GdkGCX11 *)(gc))-&gt;xgc)
</pre>
<p>
Returns the X GC of a <a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>gc</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">GC</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GDK-WINDOW-XWINDOW:CAPS"></a><h3>GDK_WINDOW_XWINDOW</h3>
<pre class="programlisting">#define GDK_WINDOW_XWINDOW	      GDK_DRAWABLE_XID
</pre>
<p>
Another name for <a class="link" href="gdk-X-Window-System-Interaction.html#GDK-DRAWABLE-XID:CAPS" title="GDK_DRAWABLE_XID()"><code class="function">GDK_DRAWABLE_XID()</code></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="gdkx-visual-get"></a><h3>gdkx_visual_get ()</h3>
<pre class="programlisting"><a class="link" href="gdk-Visuals.html#GdkVisual" title="GdkVisual"><span class="returnvalue">GdkVisual</span></a> *         gdkx_visual_get                     (<em class="parameter"><code><span class="type">VisualID</span> xvisualid</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gdkx_visual_get</code> has been deprecated since version 2.24 and should not be used in newly-written code. Use <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-screen-lookup-visual" title="gdk_x11_screen_lookup_visual ()"><code class="function">gdk_x11_screen_lookup_visual()</code></a> instead</p>
</div>
<p>
Returns a <a class="link" href="gdk-Visuals.html#GdkVisual" title="GdkVisual"><span class="type">GdkVisual</span></a> corresponding to a X visual.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>xvisualid</code></em> :</span></p></td>
<td>a X visual id.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="gdk-Visuals.html#GdkVisual" title="GdkVisual"><span class="type">GdkVisual</span></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdkx-colormap-get"></a><h3>gdkx_colormap_get ()</h3>
<pre class="programlisting"><a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="returnvalue">GdkColormap</span></a> *       gdkx_colormap_get                   (<em class="parameter"><code><span class="type">Colormap</span> xcolormap</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gdkx_colormap_get</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Returns a <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a> corresponding to a X colormap;
this function only works if the colormap is already
known to GTK+ (a colormap created by GTK+ or the default
colormap for the screen), since GTK+ 
</p>
<p>
Always use <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-colormap-foreign-new" title="gdk_x11_colormap_foreign_new ()"><code class="function">gdk_x11_colormap_foreign_new()</code></a> instead.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>xcolormap</code></em> :</span></p></td>
<td>the XID of a colormap for the default screen.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the existing <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a> object if it was
already known to GTK+, otherwise warns and return
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-pixmap-foreign-new"></a><h3>gdk_pixmap_foreign_new ()</h3>
<pre class="programlisting"><a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="returnvalue">GdkPixmap</span></a> *         gdk_pixmap_foreign_new              (<em class="parameter"><code><a class="link" href="gdk-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);</pre>
<p>
Wraps a native window for the default display in a <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>.
This may fail if the pixmap has been destroyed.
</p>
<p>
For example in the X backend, a native pixmap handle is an Xlib
<span class="type">XID</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>anid</code></em> :</span></p></td>
<td>a native pixmap handle.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the newly-created <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> wrapper for the
native pixmap or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the pixmap has been destroyed.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-pixmap-foreign-new-for-display"></a><h3>gdk_pixmap_foreign_new_for_display ()</h3>
<pre class="programlisting"><a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="returnvalue">GdkPixmap</span></a> *         gdk_pixmap_foreign_new_for_display  (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gdk-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);</pre>
<p>
Wraps a native pixmap in a <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>.
This may fail if the pixmap has been destroyed.
</p>
<p>
For example in the X backend, a native pixmap handle is an Xlib
<span class="type">XID</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>The <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> where <em class="parameter"><code>anid</code></em> is located.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>anid</code></em> :</span></p></td>
<td>a native pixmap handle.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the newly-created <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> wrapper for the
native pixmap or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the pixmap has been destroyed.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-pixmap-foreign-new-for-screen"></a><h3>gdk_pixmap_foreign_new_for_screen ()</h3>
<pre class="programlisting"><a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="returnvalue">GdkPixmap</span></a> *         gdk_pixmap_foreign_new_for_screen   (<em class="parameter"><code><a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gdk-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> depth</code></em>);</pre>
<p>
Wraps a native pixmap in a <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>.
This may fail if the pixmap has been destroyed.
</p>
<p>
For example in the X backend, a native pixmap handle is an Xlib
<span class="type">XID</span>.
</p>
<p>
This function is an alternative to <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-pixmap-foreign-new-for-display" title="gdk_pixmap_foreign_new_for_display ()"><code class="function">gdk_pixmap_foreign_new_for_display()</code></a>
for cases where the dimensions of the pixmap are known. For the X
backend, this avoids a roundtrip to the server.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>anid</code></em> :</span></p></td>
<td>a native pixmap handle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
<td>the width of the pixmap identified by <em class="parameter"><code>anid</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
<td>the height of the pixmap identified by <em class="parameter"><code>anid</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>depth</code></em> :</span></p></td>
<td>the depth of the pixmap identified by <em class="parameter"><code>anid</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the newly-created <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> wrapper for the
native pixmap or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the pixmap has been destroyed.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-window-foreign-new"></a><h3>gdk_window_foreign_new ()</h3>
<pre class="programlisting"><a class="link" href="gdk-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         gdk_window_foreign_new              (<em class="parameter"><code><a class="link" href="gdk-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gdk_window_foreign_new</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Wraps a native window for the default display in a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>.
This may fail if the window has been destroyed.
</p>
<p>
For example in the X backend, a native window handle is an Xlib
<span class="type">XID</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>anid</code></em> :</span></p></td>
<td>a native window handle.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the newly-created <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> wrapper for the
native window or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the window has been destroyed.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-window-foreign-new-for-display"></a><h3>gdk_window_foreign_new_for_display ()</h3>
<pre class="programlisting"><a class="link" href="gdk-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         gdk_window_foreign_new_for_display  (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gdk-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gdk_window_foreign_new_for_display</code> has been deprecated since version 2.24 and should not be used in newly-written code. Use <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-window-foreign-new-for-display" title="gdk_x11_window_foreign_new_for_display ()"><code class="function">gdk_x11_window_foreign_new_for_display()</code></a> or
    equivalent backend-specific API instead</p>
</div>
<p>
Wraps a native window in a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>.
This may fail if the window has been destroyed. If the window
was already known to GDK, a new reference to the existing 
<a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> is returned.
</p>
<p>
For example in the X backend, a native window handle is an Xlib
<span class="type">XID</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>the <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> where the window handle comes from.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>anid</code></em> :</span></p></td>
<td>a native window handle.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> wrapper for the native window or
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the window has been destroyed. The wrapper will be
newly created, if one doesn't exist already.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-xid-table-lookup"></a><h3>gdk_xid_table_lookup ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>            gdk_xid_table_lookup                (<em class="parameter"><code><span class="type">XID</span> xid</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gdk_xid_table_lookup</code> has been deprecated since version 2.24 and should not be used in newly-written code. This function will be removed in GTK+ 3.0. GTK+
    only stores windows in its X id table nowadays, so use
    <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-window-lookup-for-display" title="gdk_x11_window_lookup_for_display ()"><code class="function">gdk_x11_window_lookup_for_display()</code></a> instead.</p>
</div>
<p>
Returns the Gdk object associated with the given X id for the default
display.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>xid</code></em> :</span></p></td>
<td>an X id.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the associated Gdk object, which may be a <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>,
a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> or a <a class="link" href="gdk-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no object is associated
with the X id.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-xid-table-lookup-for-display"></a><h3>gdk_xid_table_lookup_for_display ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>            gdk_xid_table_lookup_for_display    (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><span class="type">XID</span> xid</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gdk_xid_table_lookup_for_display</code> has been deprecated since version 2.24 and should not be used in newly-written code. This function will be removed in GTK+ 3.0. GTK+
    only stores windows in its X id table nowadays, so use
    <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-window-lookup-for-display" title="gdk_x11_window_lookup_for_display ()"><code class="function">gdk_x11_window_lookup_for_display()</code></a> instead.</p>
</div>
<p>
Returns the GDK object associated with the given X id.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>the <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xid</code></em> :</span></p></td>
<td>an X id.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the associated Gdk object, which may be a <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>,
a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> or a <a class="link" href="gdk-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no object is associated
with the X id.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-window-lookup"></a><h3>gdk_window_lookup ()</h3>
<pre class="programlisting"><a class="link" href="gdk-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         gdk_window_lookup                   (<em class="parameter"><code><a class="link" href="gdk-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gdk_window_lookup</code> has been deprecated since version 2.24 and should not be used in newly-written code. Use <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-window-lookup-for-display" title="gdk_x11_window_lookup_for_display ()"><code class="function">gdk_x11_window_lookup_for_display()</code></a> or equivalent
   backend-specific functionality instead</p>
</div>
<p>
Looks up the <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> that wraps the given native window handle. 
</p>
<p>
For example in the X backend, a native window handle is an Xlib
<span class="type">XID</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>anid</code></em> :</span></p></td>
<td>a native window handle.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> wrapper for the native window,
or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is none.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-window-lookup-for-display"></a><h3>gdk_window_lookup_for_display ()</h3>
<pre class="programlisting"><a class="link" href="gdk-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         gdk_window_lookup_for_display       (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gdk-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gdk_window_lookup_for_display</code> has been deprecated since version 2.24 and should not be used in newly-written code. Use <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-window-lookup-for-display" title="gdk_x11_window_lookup_for_display ()"><code class="function">gdk_x11_window_lookup_for_display()</code></a> instead</p>
</div>
<p>
Looks up the <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> that wraps the given native window handle.
</p>
<p>
For example in the X backend, a native window handle is an Xlib
<span class="type">XID</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>the <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> corresponding to the window handle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>anid</code></em> :</span></p></td>
<td>a native window handle.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> wrapper for the native window,
or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is none.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-pixmap-lookup"></a><h3>gdk_pixmap_lookup ()</h3>
<pre class="programlisting"><a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="returnvalue">GdkPixmap</span></a> *         gdk_pixmap_lookup                   (<em class="parameter"><code><a class="link" href="gdk-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);</pre>
<p>
Looks up the <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> that wraps the given native pixmap handle.
</p>
<p>
For example in the X backend, a native pixmap handle is an Xlib
<span class="type">XID</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>anid</code></em> :</span></p></td>
<td>a native pixmap handle.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> wrapper for the native pixmap,
or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is none.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-pixmap-lookup-for-display"></a><h3>gdk_pixmap_lookup_for_display ()</h3>
<pre class="programlisting"><a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="returnvalue">GdkPixmap</span></a> *         gdk_pixmap_lookup_for_display       (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gdk-Event-Structures.html#GdkNativeWindow" title="GdkNativeWindow"><span class="type">GdkNativeWindow</span></a> anid</code></em>);</pre>
<p>
Looks up the <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> that wraps the given native pixmap handle.
</p>
<p>
For example in the X backend, a native pixmap handle is an Xlib
<span class="type">XID</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>the <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> associated with <em class="parameter"><code>anid</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>anid</code></em> :</span></p></td>
<td>a native pixmap handle.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> wrapper for the native pixmap,
or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is none.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-font-lookup"></a><h3>gdk_font_lookup()</h3>
<pre class="programlisting">#define gdk_font_lookup(xid)	   ((GdkFont*) gdk_xid_table_lookup (xid))
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gdk_font_lookup</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Obtains the <a class="link" href="gdk-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a> for the given Xlib font ID, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no <a class="link" href="gdk-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a> has
been created for <em class="parameter"><code>xid</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>xid</code></em> :</span></p></td>
<td>an Xlib font ID</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-font-lookup-for-display"></a><h3>gdk_font_lookup_for_display()</h3>
<pre class="programlisting">#define gdk_font_lookup_for_display(display, xid) ((GdkFont*) gdk_xid_table_lookup_for_display (display, ((xid)|XID_FONT_BIT)))
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gdk_font_lookup_for_display</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Obtains the <a class="link" href="gdk-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a> for the given Xlib font ID on <em class="parameter"><code>display</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no
<a class="link" href="gdk-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a> has been created for <em class="parameter"><code>xid</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xid</code></em> :</span></p></td>
<td>an Xlib font ID
Since: 2.2</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-lookup-xdisplay"></a><h3>gdk_x11_lookup_xdisplay ()</h3>
<pre class="programlisting"><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="returnvalue">GdkDisplay</span></a> *        gdk_x11_lookup_xdisplay             (<em class="parameter"><code><span class="type">Display</span> *xdisplay</code></em>);</pre>
<p>
Find the <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> corresponding to <em class="parameter"><code>display</code></em>, if any exists.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>xdisplay</code></em> :</span></p></td>
<td>a pointer to an X Display</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>, if found, otherwise <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-get-server-time"></a><h3>gdk_x11_get_server_time ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a>             gdk_x11_get_server_time             (<em class="parameter"><code><a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>);</pre>
<p>
Routine to get the current X server time stamp.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>, used for communication with the server.
The window must have GDK_PROPERTY_CHANGE_MASK in its
events mask or a hang will result.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the time stamp.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-net-wm-supports"></a><h3>gdk_net_wm_supports ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gdk_net_wm_supports                 (<em class="parameter"><code><a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a> property</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gdk_net_wm_supports</code> has been deprecated since version 2.24 and should not be used in newly-written code. Use <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-screen-supports-net-wm-hint" title="gdk_x11_screen_supports_net_wm_hint ()"><code class="function">gdk_x11_screen_supports_net_wm_hint()</code></a> instead</p>
</div>
<p>
This function is specific to the X11 backend of GDK, and indicates
whether the window manager for the default screen supports a certain
hint from the Extended Window Manager Hints Specification. See
<a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-screen-supports-net-wm-hint" title="gdk_x11_screen_supports_net_wm_hint ()"><code class="function">gdk_x11_screen_supports_net_wm_hint()</code></a> for complete details.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>property</code></em> :</span></p></td>
<td>a property atom.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the window manager supports <em class="parameter"><code>property</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-screen-supports-net-wm-hint"></a><h3>gdk_x11_screen_supports_net_wm_hint ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gdk_x11_screen_supports_net_wm_hint (<em class="parameter"><code><a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a> property</code></em>);</pre>
<p>
This function is specific to the X11 backend of GDK, and indicates
whether the window manager supports a certain hint from the
Extended Window Manager Hints Specification. You can find this
specification on 
<a class="ulink" href="http://www.freedesktop.org" target="_top">http://www.freedesktop.org</a>.
</p>
<p>
When using this function, keep in mind that the window manager
can change over time; so you shouldn't use this function in
a way that impacts persistent application state. A common bug
is that your application can start up before the window manager
does when the user logs in, and before the window manager starts
<a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-screen-supports-net-wm-hint" title="gdk_x11_screen_supports_net_wm_hint ()"><code class="function">gdk_x11_screen_supports_net_wm_hint()</code></a> will return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> for every property.
You can monitor the window_manager_changed signal on <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> to detect
a window manager change.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>the relevant <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>property</code></em> :</span></p></td>
<td>a property atom.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the window manager supports <em class="parameter"><code>property</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-screen-get-window-manager-name"></a><h3>gdk_x11_screen_get_window_manager_name ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> *        gdk_x11_screen_get_window_manager_name
                                                        (<em class="parameter"><code><a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> *screen</code></em>);</pre>
<p>
Returns the name of the window manager for <em class="parameter"><code>screen</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the name of the window manager screen <em class="parameter"><code>screen</code></em>, or
"unknown" if the window manager is unknown. The string is owned by GDK
and should not be freed.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-screen-get-monitor-output"></a><h3>gdk_x11_screen_get_monitor_output ()</h3>
<pre class="programlisting"><span class="returnvalue">XID</span>                 gdk_x11_screen_get_monitor_output   (<em class="parameter"><code><a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> monitor_num</code></em>);</pre>
<p>
Gets the XID of the specified output/monitor.
If the X server does not support version 1.2 of the RANDR
extension, 0 is returned.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>monitor_num</code></em> :</span></p></td>
<td>number of the monitor, between 0 and gdk_screen_get_n_monitors (screen)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the XID of the monitor</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.14</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-screen-lookup-visual"></a><h3>gdk_x11_screen_lookup_visual ()</h3>
<pre class="programlisting"><a class="link" href="gdk-Visuals.html#GdkVisual" title="GdkVisual"><span class="returnvalue">GdkVisual</span></a> *         gdk_x11_screen_lookup_visual        (<em class="parameter"><code><a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><span class="type">VisualID</span> xvisualid</code></em>);</pre>
<p>
Looks up the <a class="link" href="gdk-Visuals.html#GdkVisual" title="GdkVisual"><span class="type">GdkVisual</span></a> for a particular screen and X Visual ID.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xvisualid</code></em> :</span></p></td>
<td>an X Visual ID.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="gdk-Visuals.html#GdkVisual" title="GdkVisual"><span class="type">GdkVisual</span></a> (owned by the screen
object), or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the visual ID wasn't found. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-window-set-user-time"></a><h3>gdk_x11_window_set_user_time ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_x11_window_set_user_time        (<em class="parameter"><code><a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> timestamp</code></em>);</pre>
<p>
The application can use this call to update the _NET_WM_USER_TIME
property on a toplevel window.  This property stores an Xserver
time which represents the time of the last user input event
received for this window.  This property may be used by the window
manager to alter the focus, stacking, and/or placement behavior of
windows when they are mapped depending on whether the new window
was created by a user action or is a "pop-up" window activated by a
timer or some other event.
</p>
<p>
Note that this property is automatically updated by GDK, so this
function should only be used by applications which handle input
events bypassing GDK.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
<td>A toplevel <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>timestamp</code></em> :</span></p></td>
<td>An XServer timestamp to which the property should be set</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.6</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-window-move-to-current-desktop"></a><h3>gdk_x11_window_move_to_current_desktop ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_x11_window_move_to_current_desktop
                                                        (<em class="parameter"><code><a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>);</pre>
<p>
Moves the window to the correct workspace when running under a 
window manager that supports multiple workspaces, as described
in the <a class="ulink" href="http://www.freedesktop.org/Standards/wm-spec" target="_top">Extended 
Window Manager Hints</a>.  Will not do anything if the
window is already on all workspaces.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.8</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-display-get-user-time"></a><h3>gdk_x11_display_get_user_time ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a>             gdk_x11_display_get_user_time       (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>);</pre>
<p>
Returns the timestamp of the last user interaction on 
<em class="parameter"><code>display</code></em>. The timestamp is taken from events caused
by user interaction such as key presses or pointer 
movements. See <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-window-set-user-time" title="gdk_x11_window_set_user_time ()"><code class="function">gdk_x11_window_set_user_time()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the timestamp of the last user interaction</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.8</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-colormap-foreign-new"></a><h3>gdk_x11_colormap_foreign_new ()</h3>
<pre class="programlisting"><a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="returnvalue">GdkColormap</span></a> *       gdk_x11_colormap_foreign_new        (<em class="parameter"><code><a class="link" href="gdk-Visuals.html#GdkVisual" title="GdkVisual"><span class="type">GdkVisual</span></a> *visual</code></em>,
                                                         <em class="parameter"><code><span class="type">Colormap</span> xcolormap</code></em>);</pre>
<p>
If xcolormap refers to a colormap previously known to GTK+,
returns a new reference to the existing <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a> object,
otherwise creates a new GdkColormap object and returns that
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>visual</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Visuals.html#GdkVisual" title="GdkVisual"><span class="type">GdkVisual</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xcolormap</code></em> :</span></p></td>
<td>The XID of a colormap with visual <em class="parameter"><code>visual</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a> object for <em class="parameter"><code>xcolormap</code></em>.
Free with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. Note that for colormap created
with <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-colormap-foreign-new" title="gdk_x11_colormap_foreign_new ()"><code class="function">gdk_x11_colormap_foreign_new()</code></a>, unref'ing the last
reference to the object will only free the <span class="type">GdkColoramp</span>
object and not call <code class="function">XFreeColormap()</code>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-colormap-get-xcolormap"></a><h3>gdk_x11_colormap_get_xcolormap ()</h3>
<pre class="programlisting"><span class="returnvalue">Colormap</span>            gdk_x11_colormap_get_xcolormap      (<em class="parameter"><code><a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a> *colormap</code></em>);</pre>
<p>
Returns the X colormap belonging to a <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>colormap</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Colormap</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-colormap-get-xdisplay"></a><h3>gdk_x11_colormap_get_xdisplay ()</h3>
<pre class="programlisting"><span class="returnvalue">Display</span> *           gdk_x11_colormap_get_xdisplay       (<em class="parameter"><code><a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a> *colormap</code></em>);</pre>
<p>
Returns the display of a <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>colormap</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Display*</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-cursor-get-xcursor"></a><h3>gdk_x11_cursor_get_xcursor ()</h3>
<pre class="programlisting"><span class="returnvalue">Cursor</span>              gdk_x11_cursor_get_xcursor          (<em class="parameter"><code><a class="link" href="gdk-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a> *cursor</code></em>);</pre>
<p>
Returns the X cursor belonging to a <a class="link" href="gdk-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>cursor</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Cursor</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-cursor-get-xdisplay"></a><h3>gdk_x11_cursor_get_xdisplay ()</h3>
<pre class="programlisting"><span class="returnvalue">Display</span> *           gdk_x11_cursor_get_xdisplay         (<em class="parameter"><code><a class="link" href="gdk-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a> *cursor</code></em>);</pre>
<p>
Returns the display of a <a class="link" href="gdk-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>cursor</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Cursors.html#GdkCursor" title="GdkCursor"><span class="type">GdkCursor</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Display*</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-display-broadcast-startup-message"></a><h3>gdk_x11_display_broadcast_startup_message ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_x11_display_broadcast_startup_message
                                                        (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *message_type</code></em>,
                                                         <em class="parameter"><code>...</code></em>);</pre>
<p>
Sends a startup notification message of type <em class="parameter"><code>message_type</code></em> to
<em class="parameter"><code>display</code></em>. 
</p>
<p>
This is a convenience function for use by code that implements the
freedesktop startup notification specification. Applications should
not normally need to call it directly. See the <a class="ulink" href="http://standards.freedesktop.org/startup-notification-spec/startup-notification-latest.txt" target="_top">Startup
Notification Protocol specification</a> for
definitions of the message types and keys that can be used.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>message_type</code></em> :</span></p></td>
<td>startup notification message type ("new", "change",
or "remove")</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
<td>a list of key/value pairs (as strings), terminated by a
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> key. (A <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> value for a key will cause that key to be
skipped in the output.)</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.12</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-display-get-startup-notification-id"></a><h3>gdk_x11_display_get_startup_notification_id ()</h3>
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gdk_x11_display_get_startup_notification_id
                                                        (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>);</pre>
<p>
Gets the startup notification ID for a display.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the startup notification ID for <em class="parameter"><code>display</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.12</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-display-get-xdisplay"></a><h3>gdk_x11_display_get_xdisplay ()</h3>
<pre class="programlisting"><span class="returnvalue">Display</span> *           gdk_x11_display_get_xdisplay        (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>);</pre>
<p>
Returns the X display of a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an X display.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-display-grab"></a><h3>gdk_x11_display_grab ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_x11_display_grab                (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>);</pre>
<p>
Call <code class="function">XGrabServer()</code> on <em class="parameter"><code>display</code></em>. 
To ungrab the display again, use <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-display-ungrab" title="gdk_x11_display_ungrab ()"><code class="function">gdk_x11_display_ungrab()</code></a>. 
</p>
<p>
<a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-display-grab" title="gdk_x11_display_grab ()"><code class="function">gdk_x11_display_grab()</code></a>/<a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-display-ungrab" title="gdk_x11_display_ungrab ()"><code class="function">gdk_x11_display_ungrab()</code></a> calls can be nested.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-display-ungrab"></a><h3>gdk_x11_display_ungrab ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_x11_display_ungrab              (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>);</pre>
<p>
Ungrab <em class="parameter"><code>display</code></em> after it has been grabbed with 
<a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-display-grab" title="gdk_x11_display_grab ()"><code class="function">gdk_x11_display_grab()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-display-set-cursor-theme"></a><h3>gdk_x11_display_set_cursor_theme ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_x11_display_set_cursor_theme    (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *theme</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> size</code></em>);</pre>
<p>
Sets the cursor theme from which the images for cursor
should be taken. 
</p>
<p>
If the windowing system supports it, existing cursors created 
with <a class="link" href="gdk-Cursors.html#gdk-cursor-new" title="gdk_cursor_new ()"><code class="function">gdk_cursor_new()</code></a>, <a class="link" href="gdk-Cursors.html#gdk-cursor-new-for-display" title="gdk_cursor_new_for_display ()"><code class="function">gdk_cursor_new_for_display()</code></a> and 
<code class="function">gdk_cursor_new_for_name()</code> are updated to reflect the theme 
change. Custom cursors constructed with <a class="link" href="gdk-Cursors.html#gdk-cursor-new-from-pixmap" title="gdk_cursor_new_from_pixmap ()"><code class="function">gdk_cursor_new_from_pixmap()</code></a> 
or <a class="link" href="gdk-Cursors.html#gdk-cursor-new-from-pixbuf" title="gdk_cursor_new_from_pixbuf ()"><code class="function">gdk_cursor_new_from_pixbuf()</code></a> will have to be handled
by the application (GTK+ applications can learn about 
cursor theme changes by listening for change notification
for the corresponding <span class="type">GtkSetting</span>).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>theme</code></em> :</span></p></td>
<td>the name of the cursor theme to use, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to unset
a previously set value</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>the cursor size to use, or 0 to keep the previous size</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.8</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-register-standard-event-type"></a><h3>gdk_x11_register_standard_event_type ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_x11_register_standard_event_type
                                                        (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> event_base</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n_events</code></em>);</pre>
<p>
Registers interest in receiving extension events with type codes
between <em class="parameter"><code>event_base</code></em> and <code class="literal">event_base + n_events - 1</code>.
The registered events must have the window field in the same place
as core X events (this is not the case for e.g. XKB extension events).
</p>
<p>
If an event type is registered, events of this type will go through
global and window-specific filters (see <a class="link" href="gdk-Windows.html#gdk-window-add-filter" title="gdk_window_add_filter ()"><code class="function">gdk_window_add_filter()</code></a>). 
Unregistered events will only go through global filters.
GDK may register the events of some X extensions on its own.
</p>
<p>
This function should only be needed in unusual circumstances, e.g.
when filtering XInput extension events on the root window.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>event_base</code></em> :</span></p></td>
<td>first event type code to register</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_events</code></em> :</span></p></td>
<td>number of event type codes to register</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-drawable-get-xdisplay"></a><h3>gdk_x11_drawable_get_xdisplay ()</h3>
<pre class="programlisting"><span class="returnvalue">Display</span> *           gdk_x11_drawable_get_xdisplay       (<em class="parameter"><code><a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a> *drawable</code></em>);</pre>
<p>
Returns the display of a <a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>drawable</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Display*</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-drawable-get-xid"></a><h3>gdk_x11_drawable_get_xid ()</h3>
<pre class="programlisting"><span class="returnvalue">XID</span>                 gdk_x11_drawable_get_xid            (<em class="parameter"><code><a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a> *drawable</code></em>);</pre>
<p>
Returns the X resource (window or pixmap) belonging to a <a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>drawable</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the ID of <em class="parameter"><code>drawable</code></em>'s X resource.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-font-get-name"></a><h3>gdk_x11_font_get_name ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> *        gdk_x11_font_get_name               (<em class="parameter"><code><a class="link" href="gdk-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a> *font</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gdk_x11_font_get_name</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Return the X Logical Font Description (for font-&gt;type == GDK_FONT_FONT)
or comma separated list of XLFDs (for font-&gt;type == GDK_FONT_FONTSET)
that was used to load the font. If the same font was loaded
via multiple names, which name is returned is undefined.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the name of the font. This string is owned
by GDK and must not be modified or freed.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-font-get-xdisplay"></a><h3>gdk_x11_font_get_xdisplay ()</h3>
<pre class="programlisting"><span class="returnvalue">Display</span> *           gdk_x11_font_get_xdisplay           (<em class="parameter"><code><a class="link" href="gdk-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a> *font</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gdk_x11_font_get_xdisplay</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Returns the display of a <a class="link" href="gdk-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Display*</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-font-get-xfont"></a><h3>gdk_x11_font_get_xfont ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>            gdk_x11_font_get_xfont              (<em class="parameter"><code><a class="link" href="gdk-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a> *font</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gdk_x11_font_get_xfont</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Returns the X font belonging to a <a class="link" href="gdk-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Fonts.html#GdkFont" title="GdkFont"><span class="type">GdkFont</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">XFontStruct*</span> or an <span class="type">XFontSet</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-gc-get-xdisplay"></a><h3>gdk_x11_gc_get_xdisplay ()</h3>
<pre class="programlisting"><span class="returnvalue">Display</span> *           gdk_x11_gc_get_xdisplay             (<em class="parameter"><code><a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> *gc</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gdk_x11_gc_get_xdisplay</code> has been deprecated since version 2.22 and should not be used in newly-written code. <a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> has been replaced by <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a>.</p>
</div>
<p>
Returns the display of a <a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>gc</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Display*</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-gc-get-xgc"></a><h3>gdk_x11_gc_get_xgc ()</h3>
<pre class="programlisting"><span class="returnvalue">GC</span>                  gdk_x11_gc_get_xgc                  (<em class="parameter"><code><a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> *gc</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gdk_x11_gc_get_xgc</code> has been deprecated since version 2.22 and should not be used in newly-written code. <a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> has been replaced by <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a>.</p>
</div>
<p>
Returns the X GC of a <a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>gc</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">GC</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-get-default-root-xwindow"></a><h3>gdk_x11_get_default_root_xwindow ()</h3>
<pre class="programlisting"><span class="returnvalue">Window</span>              gdk_x11_get_default_root_xwindow    (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Gets the root window of the default screen 
(see <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-get-default-screen" title="gdk_x11_get_default_screen ()"><code class="function">gdk_x11_get_default_screen()</code></a>).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Window</span>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-get-default-screen"></a><h3>gdk_x11_get_default_screen ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gdk_x11_get_default_screen          (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Gets the default GTK+ screen number.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>returns the screen number specified by
the --display command line option or the DISPLAY environment
variable when <a class="link" href="gdk-General.html#gdk-init" title="gdk_init ()"><code class="function">gdk_init()</code></a> calls <code class="function">XOpenDisplay()</code>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-get-default-xdisplay"></a><h3>gdk_x11_get_default_xdisplay ()</h3>
<pre class="programlisting"><span class="returnvalue">Display</span> *           gdk_x11_get_default_xdisplay        (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Gets the default GTK+ display.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the Xlib <span class="type">Display*</span> for the display
specified in the <code class="option">--display</code> command line option
or the <code class="envar">DISPLAY</code> environment variable.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-grab-server"></a><h3>gdk_x11_grab_server ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_x11_grab_server                 (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Call <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-display-grab" title="gdk_x11_display_grab ()"><code class="function">gdk_x11_display_grab()</code></a> on the default display. 
To ungrab the server again, use <a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-ungrab-server" title="gdk_x11_ungrab_server ()"><code class="function">gdk_x11_ungrab_server()</code></a>. 
</p>
<p>
<a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-grab-server" title="gdk_x11_grab_server ()"><code class="function">gdk_x11_grab_server()</code></a>/<a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-ungrab-server" title="gdk_x11_ungrab_server ()"><code class="function">gdk_x11_ungrab_server()</code></a> calls can be nested.
</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-image-get-xdisplay"></a><h3>gdk_x11_image_get_xdisplay ()</h3>
<pre class="programlisting"><span class="returnvalue">Display</span> *           gdk_x11_image_get_xdisplay          (<em class="parameter"><code><a class="link" href="gdk-Images.html#GdkImage" title="GdkImage"><span class="type">GdkImage</span></a> *image</code></em>);</pre>
<p>
Returns the display of a <a class="link" href="gdk-Images.html#GdkImage" title="GdkImage"><span class="type">GdkImage</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Images.html#GdkImage" title="GdkImage"><span class="type">GdkImage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Display*</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-image-get-ximage"></a><h3>gdk_x11_image_get_ximage ()</h3>
<pre class="programlisting"><span class="returnvalue">XImage</span> *            gdk_x11_image_get_ximage            (<em class="parameter"><code><a class="link" href="gdk-Images.html#GdkImage" title="GdkImage"><span class="type">GdkImage</span></a> *image</code></em>);</pre>
<p>
Returns the X image belonging to a <a class="link" href="gdk-Images.html#GdkImage" title="GdkImage"><span class="type">GdkImage</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Images.html#GdkImage" title="GdkImage"><span class="type">GdkImage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an <span class="type">XImage*</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-screen-get-screen-number"></a><h3>gdk_x11_screen_get_screen_number ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 gdk_x11_screen_get_screen_number    (<em class="parameter"><code><a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> *screen</code></em>);</pre>
<p>
Returns the index of a <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the position of <em class="parameter"><code>screen</code></em> among the screens of
its display.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-screen-get-xscreen"></a><h3>gdk_x11_screen_get_xscreen ()</h3>
<pre class="programlisting"><span class="returnvalue">Screen</span> *            gdk_x11_screen_get_xscreen          (<em class="parameter"><code><a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> *screen</code></em>);</pre>
<p>
Returns the screen of a <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Screen*</span>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-ungrab-server"></a><h3>gdk_x11_ungrab_server ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_x11_ungrab_server               (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Ungrab the default display after it has been grabbed with 
<a class="link" href="gdk-X-Window-System-Interaction.html#gdk-x11-grab-server" title="gdk_x11_grab_server ()"><code class="function">gdk_x11_grab_server()</code></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-visual-get-xvisual"></a><h3>gdk_x11_visual_get_xvisual ()</h3>
<pre class="programlisting"><span class="returnvalue">Visual</span> *            gdk_x11_visual_get_xvisual          (<em class="parameter"><code><a class="link" href="gdk-Visuals.html#GdkVisual" title="GdkVisual"><span class="type">GdkVisual</span></a> *visual</code></em>);</pre>
<p>
Returns the X visual belonging to a <a class="link" href="gdk-Visuals.html#GdkVisual" title="GdkVisual"><span class="type">GdkVisual</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>visual</code></em> :</span></p></td>
<td>a <a class="link" href="gdk-Visuals.html#GdkVisual" title="GdkVisual"><span class="type">GdkVisual</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an Xlib <span class="type">Visual*</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-atom-to-xatom"></a><h3>gdk_x11_atom_to_xatom ()</h3>
<pre class="programlisting"><span class="returnvalue">Atom</span>                gdk_x11_atom_to_xatom               (<em class="parameter"><code><a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a> atom</code></em>);</pre>
<p>
Converts from a <a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a> to the X atom for the default GDK display
with the same string value.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>atom</code></em> :</span></p></td>
<td>A <a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the X atom corresponding to <em class="parameter"><code>atom</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-atom-to-xatom-for-display"></a><h3>gdk_x11_atom_to_xatom_for_display ()</h3>
<pre class="programlisting"><span class="returnvalue">Atom</span>                gdk_x11_atom_to_xatom_for_display   (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a> atom</code></em>);</pre>
<p>
Converts from a <a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a> to the X atom for a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>
with the same string value. The special value <a class="link" href="gdk-Properties-and-Atoms.html#GDK-NONE:CAPS" title="GDK_NONE"><code class="literal">GDK_NONE</code></a>
is converted to <code class="literal">None</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>A <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>atom</code></em> :</span></p></td>
<td>A <a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a>, or <a class="link" href="gdk-Properties-and-Atoms.html#GDK-NONE:CAPS" title="GDK_NONE"><code class="literal">GDK_NONE</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the X atom corresponding to <em class="parameter"><code>atom</code></em>, or <code class="literal">None</code>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-xatom-to-atom"></a><h3>gdk_x11_xatom_to_atom ()</h3>
<pre class="programlisting"><a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="returnvalue">GdkAtom</span></a>             gdk_x11_xatom_to_atom               (<em class="parameter"><code><span class="type">Atom</span> xatom</code></em>);</pre>
<p>
Convert from an X atom for the default display to the corresponding
<a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>xatom</code></em> :</span></p></td>
<td>an X atom for the default GDK display</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the corresponding G<span class="type">dkAtom</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-xatom-to-atom-for-display"></a><h3>gdk_x11_xatom_to_atom_for_display ()</h3>
<pre class="programlisting"><a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="returnvalue">GdkAtom</span></a>             gdk_x11_xatom_to_atom_for_display   (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><span class="type">Atom</span> xatom</code></em>);</pre>
<p>
Convert from an X atom for a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> to the corresponding
<a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>A <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xatom</code></em> :</span></p></td>
<td>an X atom</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the corresponding <a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom" title="GdkAtom"><span class="type">GdkAtom</span></a>.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-get-xatom-by-name"></a><h3>gdk_x11_get_xatom_by_name ()</h3>
<pre class="programlisting"><span class="returnvalue">Atom</span>                gdk_x11_get_xatom_by_name           (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *atom_name</code></em>);</pre>
<p>
Returns the X atom for GDK's default display corresponding to <em class="parameter"><code>atom_name</code></em>.
This function caches the result, so if called repeatedly it is much
faster than <code class="function">XInternAtom()</code>, which is a round trip to the server each time.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>atom_name</code></em> :</span></p></td>
<td>a string</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a X atom for GDK's default display.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-get-xatom-by-name-for-display"></a><h3>gdk_x11_get_xatom_by_name_for_display ()</h3>
<pre class="programlisting"><span class="returnvalue">Atom</span>                gdk_x11_get_xatom_by_name_for_display
                                                        (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *atom_name</code></em>);</pre>
<p>
Returns the X atom for a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> corresponding to <em class="parameter"><code>atom_name</code></em>.
This function caches the result, so if called repeatedly it is much
faster than <code class="function">XInternAtom()</code>, which is a round trip to the server each time.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>atom_name</code></em> :</span></p></td>
<td>a string</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a X atom for a <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-get-xatom-name"></a><h3>gdk_x11_get_xatom_name ()</h3>
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gdk_x11_get_xatom_name              (<em class="parameter"><code><span class="type">Atom</span> xatom</code></em>);</pre>
<p>
Returns the name of an X atom for GDK's default display. This
function is meant mainly for debugging, so for convenience, unlike
<code class="function"><code class="function">XAtomName()</code></code> and <a class="link" href="gdk-Properties-and-Atoms.html#gdk-atom-name" title="gdk_atom_name ()"><code class="function">gdk_atom_name()</code></a>, the result 
doesn't need to be freed. Also, this function will never return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, 
even if <em class="parameter"><code>xatom</code></em> is invalid.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>xatom</code></em> :</span></p></td>
<td>an X atom for GDK's default display</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>name of the X atom; this string is owned by GTK+,
so it shouldn't be modifed or freed.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-get-xatom-name-for-display"></a><h3>gdk_x11_get_xatom_name_for_display ()</h3>
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gdk_x11_get_xatom_name_for_display  (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><span class="type">Atom</span> xatom</code></em>);</pre>
<p>
Returns the name of an X atom for its display. This
function is meant mainly for debugging, so for convenience, unlike
<code class="function">XAtomName()</code> and <a class="link" href="gdk-Properties-and-Atoms.html#gdk-atom-name" title="gdk_atom_name ()"><code class="function">gdk_atom_name()</code></a>, the result doesn't need to
be freed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>the <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> where <em class="parameter"><code>xatom</code></em> is defined</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xatom</code></em> :</span></p></td>
<td>an X atom</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>name of the X atom; this string is owned by GDK,
so it shouldn't be modifed or freed.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-set-sm-client-id"></a><h3>gdk_x11_set_sm_client_id ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_x11_set_sm_client_id            (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *sm_client_id</code></em>);</pre>
<p>
Sets the <code class="literal">SM_CLIENT_ID</code> property on the application's leader window so that
the window manager can save the application's state using the X11R6 ICCCM
session management protocol.
</p>
<p>
See the X Session Management Library documentation for more information on
session management and the Inter-Client Communication Conventions Manual
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>sm_client_id</code></em> :</span></p></td>
<td>the client id assigned by the session manager when the
connection was opened, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to remove the property.</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.24</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-window-foreign-new-for-display"></a><h3>gdk_x11_window_foreign_new_for_display ()</h3>
<pre class="programlisting"><a class="link" href="gdk-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         gdk_x11_window_foreign_new_for_display
                                                        (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><span class="type">Window</span> window</code></em>);</pre>
<p>
Wraps a native window in a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>.
</p>
<p>
This may fail if the window has been destroyed. If the window
was already known to GDK, a new reference to the existing
<a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> is returned.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>the <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> where the window handle comes from.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
<td>an XLib <span class="type">Window</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> wrapper for the native window or
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the window has been destroyed. The wrapper will be
newly created, if one doesn't exist already.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.24</p>
</div>
<hr>
<div class="refsect2">
<a name="gdk-x11-window-lookup-for-display"></a><h3>gdk_x11_window_lookup_for_display ()</h3>
<pre class="programlisting"><a class="link" href="gdk-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         gdk_x11_window_lookup_for_display   (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
                                                         <em class="parameter"><code><span class="type">Window</span> window</code></em>);</pre>
<p>
Looks up the <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> that wraps the given native window handle.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td>the <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> corresponding to the window handle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
<td>an XLib <span class="type">Window</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> wrapper for the native window,
or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is none.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.24</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>